<!DOCTYPE HTML>
<html lang="de">
    <head>
        <title>Hyphenator.js &ndash; Test 46</title>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <style type="text/css">
            body {
                width:50%;
                margin-left:25%;
                margin-right:25%;
            }
            #test {
            	background-color: #ffd6d6;
            }
            #ref {
            	background-color: #d6ffd6;
            }
        </style>
        <script src="files/jquery.js" type="text/javascript"></script>
    </head>
    <body>
		<p><a href="index.html">&lt;&lt; index</a> | <a href="test45.html">&lt;- Prev</a> | <a href="test47.html">Next -&gt;</a></p>
        <h1>Test 46</h1>
        <p id="desc">Hyphenating content that has been loaded by AJAX. This time, de.js is loaded manually</p>
		<form method="post" action="#">
		<input type="button" value="load text…" onclick="insert()">
		</form>
		<p class="hyphenate">Silbentrennung</p>
        <p id="target" class="hyphenate"></p>
        <p id="ref">Das eng|li|sche Wort &ldquo;Hy|phen|ation&rdquo; lässt sich nicht un|be|dingt wört|lich mit «Sil|ben|tren|nung» über|set|zen.</p>
        <script src="../Hyphenator.js" type="text/javascript"></script>
        <script type="text/javascript">
			if (parent != window) {
				var desc = document.getElementById('desc').innerHTML,
				msg = {
					desc: '(obsolete) ' + desc,
					index: 46,
					result: 'obsolete'
				};
				parent.postMessage(JSON.stringify(msg), window.location.href);
			}
        	Hyphenator.run({
        		wordhyphenchar:'|'
        	});
			
        </script>
    </body>
</html>